Skip to content

Read the Cyrillic doctorate д-р ending a name as a credential, and the Bulgarian д.м. under a Bulgarian choice - #1519

Merged
derek73 merged 4 commits into
masterfrom
fix/issue-1128-cyrillic-doctor-credential
Nov 22, 2026
Merged

derek73 merged 4 commits into
masterfrom
fix/issue-1128-cyrillic-doctor-credential

Conversation

@derek73

@derek73 derek73 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Closes #1128

д-р (доктор) ending a name is now a credential: parse("Іван Петренко д-р") gives family Петренко, suffix д-р. 1.4.0 through 3.1.0 gave middle Петренко, family д-р. This is option 1 of the issue, decided 2026-11-21.

Part 1: the dual

ru.toml, uk.toml and bg.toml give д-р a credential reading beside its academic one. That makes it a title/suffix dual decided by position, as sr and lt are.

Input master now
Іван Петренко д-р middle Петренко, family д-р family Петренко, suffix д-р
Іван Петренко, д-р title д-р suffix д-р
Петренко, Іван д-р middle д-р suffix д-р
Іван Петренко д-р. title д-р. (rules/H5's chain) suffix д-р.
д-р Іван Петренко, проф. д-р Іван Петренко title title (unchanged)
Іван Петренко, проф. д-р title проф. д-р title проф., suffix д-р
Іван д-р family д-р given Іван, suffix д-р, reported given-or-family, as John Sr and John Lt read
Сидоров Иван Петрович д-р (locales.RU) given Сидоров, family д-р the patronymic rule reads it, suffix д-р

A lowercase case mask (cased = "д-р") makes repair write д-р; master wrote Д-Р, for the title too. The Latin lookalike д-p (Latin p) isn't listed and stays a name word.

Part 2: the degree abbreviations

  • д.м. is listed in bg.toml as дм. Why your probe moved nothing: an acronym credential is matched with every full stop removed, as M.D. is md. add("д.м.") stores д.м, which never matches.
    • Two letters with stops are paired initials (rules/C5), and no shape reads them as a credential, so the listing is the only route.
  • дм is written default = false, so only a Bulgarian choice reads it.
    • Listed by default, a two-word Surname Дм. (Дмитрий written short) and Surname Д.М. lost the family name under every order, under locales.RU too.
    • Example: Мережковский Дм. under FAMILY_FIRST.
  • к.м.н. and д.м.н. need no entry. Three dotted chunks are rules/S3's shape, already read as the credential on master.
  • The spaced writing CLDR's Russian and Bashkir files use (к. м. н., м. ф. д.) still reads as initials, as John Smith, M. D. does. Reading it would take a new rule, and none was written.
  • No source writes к.ф.-м.н. or the other degree abbreviations, so none is listed.

The issue's open point (an invented name of the ORCID record's shape):

Configuration доц. д-р Мария Петрова, д.м.
master family доц. д-р Мария Петрова, given д.м.
a Bulgarian choice (languages=frozenset({"bg"}), plain or strict) title доц. д-р, given Мария, family Петрова, suffix д.м.: the comma becomes a suffix comma and the title run peels
the default family доц. Мария Петрова, given д.м., suffix д-р (both readings wrong; accepted and recorded)

Measured (base efdf0e1)

  • cldr_agreement.py: 9 field agreements gained, none lost.
    • Title 2,414 → 2,416, suffix 2,381 → 2,386, family_base 395 → 396, surname1_base 186 → 187.
    • The issue's figures at 9cdc64b showed the same 9.
    • cldr_agreement.json is re-recorded.
    • GND, Wikidata native and both locale views match their records.
  • snapshot.py --since efdf0e16: 18 entries, all CLDR renderings.
    • 7 readings move, all of д-р.
    • 11 forced case views move, from the mask.
  • snapshot.py --local --base: opensanctions-parliaments and jrc-names (the corpora holding Cyrillic) match the base; orcid-researchers moves 1 name, the one holding д-р.
  • config_diff.py, adding дм by default: 1 of 29,666 local names holding the letters moved. The review then found the Дм. and Д.М. shapes the corpora don't hold, which is why it is opt-in.
  • tools/name_usage.py: no name in any local corpus or Wikidata bears д-р or дм.

Docs and tests

Reviews

  • pr-review-toolkit code-reviewer (vocabulary): found the Дм. collision. That made дм opt-in. It also found the misplaced Standing line.
  • pr-test-analyzer: listed missing rows (the period and capitals forms, comma shapes, family-first twins, the RU patronymic case, the mask); all added.
  • design-docs-reviewer: found:
  • A review of the fix commit: found prose that tied the opt-in's cause to FAMILY_FIRST alone, and the Bulgarian readings unpinned after two rows were dropped. Both are fixed.

🤖 Generated with Claude Code

derek73 and others added 4 commits November 21, 2026 16:19
…, as credentials (#1128)

д-р gains a credential reading in ru.toml, uk.toml and bg.toml beside its
academic one, a title/suffix dual position decides, as CLDR writes it:
"Іван Петренко д-р" gives family Петренко, suffix д-р, and in front it
stays the title. bg.toml lists д.м. as дм, its stops removed as for md,
so "доц. д-р Мария Петрова, д.м." reads title "доц. д-р", family
Петрова, suffix д.м. A lowercase mask keeps д-р lowercase under case
repair. к.м.н. and д.м.н. already read by the dotted shape (rules/S3);
the spaced к. м. н. is left as initials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The vocabulary review found that Дм., Дмитрий written short, folds to
дм as the initials Д.М. do, so with bg.toml's readings on by default
"Мережковский Дм." lost its family name under FAMILY_FIRST, locales.RU
included. дм is written default = false: a Bulgarian choice reads the
degree, the default and a Russian choice do not. The decisions entry
records the cost and the re-taken CLDR figures, its recipe compares
--since the base, and #1104's Standing line no longer lists д-р; the
tests review's rows are added, with a render test for the mask.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an readings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.2 milestone Nov 22, 2026
@derek73 derek73 added bug vocabulary Fixed by a word-list entry: per-word vocabulary and language packs non-latin-script Names written in a script other than Latin (rules/W) suffixes Generational suffixes and credentials (rules/S) labels Nov 22, 2026
@derek73 derek73 self-assigned this Nov 22, 2026
@derek73
derek73 merged commit 050947b into master Nov 22, 2026
14 checks passed
@derek73
derek73 deleted the fix/issue-1128-cyrillic-doctor-credential branch November 22, 2026 02:59
derek73 added a commit that referenced this pull request Nov 22, 2026
Bring in #1519; keep both release-log bullets. The compiled files merged
clean and build.py --check reports them current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 mentioned this pull request Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug non-latin-script Names written in a script other than Latin (rules/W) suffixes Generational suffixes and credentials (rules/S) vocabulary Fixed by a word-list entry: per-word vocabulary and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should д-р ending a name read as a credential, as Belarusian and Ukrainian write it? (Іван Петренко д-р gives family д-р)

1 participant